package yaty.lee.tencent.weibo.domain;

import java.util.UUID;

import yaty.lee.tencent.weibo.util.OAuthDataUtil;
import yaty.lee.tencent.weibo.util.OAuthPropertiesUtil;

public abstract class OAuth1VO extends VO {
    private final String oauth_consumer_key = OAuthPropertiesUtil.getKey();
    private final String oauth_nonce = UUID.randomUUID().toString().replaceAll("-", "");
    private String oauth_signature;
    private final String oauth_signature_method = "HMAC-SHA1";
    private final String oauth_timestamp = System.currentTimeMillis() / 1000 + "";
    private final String oauth_token = OAuthDataUtil.getOAuthToken();
    private final String oauth_version = "1.0";

    public String getOauth_consumer_key() {
        return oauth_consumer_key;
    }

    public String getOauth_nonce() {
        return oauth_nonce;
    }

    public String getOauth_signature() {
        return oauth_signature;
    }

    public void setOauth_signature(String oauth_signature) {
        this.oauth_signature = oauth_signature;
    }

    public String getOauth_timestamp() {
        return oauth_timestamp;
    }

    public String getOauth_signature_method() {
        return oauth_signature_method;
    }

    public String getOauth_token() {
        return oauth_token;
    }

    public String getOauth_version() {
        return oauth_version;
    }

}
